package com.studio.base.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.ActionSupport;
import com.studio.base.json.StudioJson;
import com.studio.base.utils.Pager;

public class BaseAction extends ActionSupport implements ServletRequestAware{
	
	protected HttpServletRequest request;
	
	protected StudioJson json;
	
	protected String returnMsg=this.SUCCESS;
	
	protected Pager pager = new Pager();
	
	protected String callBackPage;
	
	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}

	public StudioJson getJson() {
		return json;
	}

	public void setJson(StudioJson json) {
		this.json = json;
	}

	public Pager getPager() {
		return pager;
	}

	public void setPager(Pager pager) {
		this.pager = pager;
	}

	public String getCallBackPage() {
		return callBackPage;
	}

	public void setCallBackPage(String callBackPage) {
		this.callBackPage = callBackPage;
	}

	@Override
	public String execute(){
		return returnMsg;
	}
	

	@Override
	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}
}
